package com.example.tms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;

/*
 *无他，唯手熟尔
 */
@Data
@TableName("system_log")
public class SystemLog {
    @Getter
    @TableId(value = "log_id", type = IdType.AUTO) // 主键映射
    private Integer id;
    @Getter
    @TableField("level") // 日志级别
    private String level;
    @Getter
    @TableField("action") // 日志动作
    private String action;
    @Getter
    @TableField("user_id") // 操作用户
    private String userId;
    @Getter
    @TableField("ip_address") // 日志IP
    private String ip;
    @TableLogic // 逻辑删除
    @TableField("is_deleted")
    private Boolean isDeleted;
    @Getter
    @TableField("created_at") // 创建时间
    private String createdAt;
    @TableField("description")   // 描述
    private String description;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Boolean getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Boolean deleted) {
        isDeleted = deleted;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public String getLevel() {
        return level;
    }

    public String getAction() {
        return action;
    }

    public String getUserId() {
        return userId;
    }

    public String getIp() {
        return ip;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
